# -*- coding: utf-8 -*-
# Django settings for lp project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG
MEDIA_DEBUG = DEBUG
SQL_DEBUG = False

LP = {  'version'   : '0.3',
        'revision'  : '15',
}

ADMINS = (
    ('Daniel Kontšek', 'daniel.kontsek@gmail.com'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = '../db/lp.db'  # Or path to database file if using sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

TIME_ZONE = 'Europe/Bratislava'

LANGUAGE_CODE = 'en'

SITE_ID = 1

USE_I18N = True

LANGUAGES = (
    ('en', 'English'),
    ('sk', 'Slovenčina'),
)

ROOT_URL = ''

MEDIA_ROOT = ''

MEDIA_URL = '/lp_media'

ADMIN_MEDIA_PREFIX = '/lp_media/admin/'

SECRET_KEY = 'lm++^!)lfu#$cslpcndohi_t7)e!n#!q6dk408-u$f^aau_vby'

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.i18n',
    'django.core.context_processors.auth',
    'django.core.context_processors.media',
    'django.core.context_processors.request',
)

TEMPLATE_LOADERS = (
    'django.template.loaders.app_directories.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    #'lp.lpx.middleware.SQLLogMiddleware',
)

ROOT_URLCONF = 'lp.urls'

TEMPLATE_DIRS = (
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',
    'lp.lpx',
)

SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_COOKIE_AGE = 42949672

TMPDIR = '../tmp/data'
SAVEDIR = '../tmp/saved'
GLPSOL = 'glpsol'
